package com.tarena.all;
import java.util.Scanner;

public class SwitchDemo1 {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		while(true){
			System.out.println("输入学生成绩：");
			int score=sc.nextInt();
			if(score<0||score>100){
			System.out.println("输入学生成绩不正确");
			continue;
			}
			if(score==0){
				System.out.println("学生成绩录入完毕");
				break;
			}
		}

	}

}
